package com.flyme.module.base.client.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

/**
 * @author: flyme
 * @date: 2018/3/26 20:17
 * @desc:
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum MenuTypeEnum implements IEnum {
    MENU(0, "菜单"), BUTTON(1, "按钮"), OTHER(2, "其他");
    @EnumValue
    private int value;
    private String name;

    MenuTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Serializable getValue() {
        return this.value;
    }
}
